import Vue from 'vue'
import {
  ConfigProvider,
  Icon,
  Button,
  Tag,
  Menu,
  Dropdown,
  Avatar,
  Spin,
  Result,
  Form,
  Tabs,
  Input,
  Checkbox,
  Row,
  Col,
  Modal,
  Alert,
  Divider,
  notification,
  message,
  Select,
  Steps,
  Card,
  Radio,
  Skeleton,
  Cascader,
  Tooltip,
  List,
  DatePicker,
  Table,
  Descriptions,
  Switch,
  Tree,
  Upload,
  TimePicker,
} from 'ant-design-vue'
import Viser from 'viser-vue'

// Ant Design Vue
Vue.use(ConfigProvider)
Vue.use(Icon)
Vue.use(Tag)
Vue.use(Button)
Vue.use(Menu)
Vue.use(Dropdown)
Vue.use(Avatar)
Vue.use(Spin)
Vue.use(Result)
Vue.use(Form)
Vue.use(Tabs)
Vue.use(Input)
Vue.use(Steps)
Vue.use(Select)
Vue.use(Checkbox)
Vue.use(Row)
Vue.use(Col)
Vue.use(Modal)
Vue.use(Alert)
Vue.use(Divider)
Vue.use(Card)
Vue.use(Radio)
Vue.use(Skeleton)
Vue.use(Cascader)
Vue.use(Tooltip)
Vue.use(List)
Vue.use(DatePicker)
Vue.use(Table)
Vue.use(Descriptions)
Vue.use(Switch)
Vue.use(Tree)
Vue.use(Upload)
Vue.use(TimePicker)

Vue.prototype.$confirm = Modal.confirm
Vue.prototype.$message = message
Vue.prototype.$notification = notification
Vue.prototype.$info = Modal.info
Vue.prototype.$success = Modal.success
Vue.prototype.$error = Modal.error
Vue.prototype.$warning = Modal.warning

Vue.use(Viser)
